const TokenKey = "Token";
const RefreshTokenKey = "REFRESH_TOKEN";
export function getToken() {
  return localStorage.getItem(TokenKey);
}

export function setToken(token) {
  localStorage.setItem(TokenKey, token);
}

export function setRefreshToken(token) {
  localStorage.setItem(RefreshTokenKey, token);
}

export function removeToken() {
  localStorage.removeItem(TokenKey);
  localStorage.removeItem(RefreshTokenKey);
}

export function getRefreshToken() {
  return localStorage.getItem(RefreshTokenKey);
  // return localStorage.getItem(RefreshTokenKey);
}
export function removeRefreshToken() {
  localStorage.removeItem(RefreshTokenKey);
}

export function getUserInfo() {
  return localStorage.getItem("userInfo");
}

export function setUserInfo(userInfo) {
  localStorage.setItem("userInfo", userInfo);
}

export function removeUserInfo() {
  localStorage.removeItem("userInfo");
}

export function getPhone() {
  return localStorage.getItem("phone");
}
export function setPhone(phone) {
  localStorage.setItem("phone", phone);
}
export function removePhone() {
  localStorage.removeItem("phone");
}

export function setmaskedPhone(phone) {
  localStorage.setItem("maskedPhone", phone);
}
export function getmaskedPhone() {
  return localStorage.getItem("maskedPhone");
}
export function removemaskedPhone() {
  localStorage.removeItem("maskedPhone");
}
